package net.jlibrary.group.domain;

import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;

import org.hibernate.annotations.BatchSize;

import net.jlibrary.common.core.annotation.CodeGenComment;
import net.jlibrary.common.project.domain.Group;

/**
 * 总部
 * @author fzys
 *
 */
@Entity(name = "tab_grouphq")
@PrimaryKeyJoinColumn(name = "group_id")
@BatchSize(size = 15)
@CodeGenComment(value = "公司账户管理")
public class GroupHq extends Group {
	private static final long serialVersionUID = -2584879633885691915L;

	public boolean equals(Object rhs) {
		if (rhs == null)
			return false;
		if (!(rhs instanceof Group))
			return false;
		GroupHq that = (GroupHq) rhs;
		if (this.getId() == null || that.getId() == null)
			return false;
		return (this.getId().equals(that.getId()));
	}

	public int hashCode() {
		final int PRIME = 31;
		int result = 1;
		result = PRIME * result + ((this.getId() == null) ? 0 : this.getId().hashCode());
		return result;
	}
}
